var app = require('express')();
var url = require('url');
var fs = require('fs');
app.get('/home',function (req,res) {
    var realPath = fs.realpathSync('./data/home.json');
    res.sendFile(realPath);
})
app.get('*',function (req,res) {
    res.sendFile(__dirname+req.path);
});
app.listen(8888,function () {
    console.log('服务器启动成功');
});
